<template>
	<view class="container">
		<view class="title">
			<text>{{data.title}}</text>
			<text>{{data.add_time}}</text>
		</view>
		<view class="content">
			<text>{{data.content}}</text>
		</view>
	</view>
</template>

<script>
	import {
		announcementDetail
	} from "@/api/public.js"
	export default {
		data() {
			return {
				data: {}
			}
		},
		onLoad(option) {
			announcementDetail(option.id).then(res => {
				this.data = res.data
			})
		},
		methods: {

		}
	}
</script>

<style lang="scss" scoped>
	.container {
		padding: 20rpx 30rpx;

		.title {
			text {
				display: block;
			}

			text:nth-of-type(1) {
				font-size: 28rpx;
				font-weight: bold;
				color: rgba(51, 51, 51, 1);
			}

			text:nth-of-type(2) {
				margin-top: 10rpx;
				font-size: 24rpx;
				color: rgba(153, 153, 153, 1);
			}
		}
		.content{
			margin-top: 30rpx;
			font-size:24rpx;
			line-height: 40rpx;
			color:rgba(51,51,51,1);
		}
	}
</style>
